import tqRequest from "@/service";
import { IAccount } from "@/service/login/type";

export function accountLoginRequest(account: IAccount) {
  return tqRequest.post({
    url: "/login",
    data: account,
    showLoading: true,
  });
}

export function requestUserInfoById(id: number) {
  return tqRequest.get({
    url: `users/+${id}`,
  });
}

export function requestUserMenusById(id: number) {
  return tqRequest.get({
    url: `role/${id}/menu`,
  });
}
